<div class="am-topbar-brand">
    <a href="javascript:;" class="tpl-logo">
        <img src="{{ asset('admin/img/logo.png') }}" alt="">
    </a>
</div>
<div class="am-icon-list tpl-header-nav-hover-ico am-fl am-margin-right">

</div>

<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

<div class="am-collapse am-topbar-collapse" id="topbar-collapse">

    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
        <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
            <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                <span class="am-icon-bell-o"></span> 提醒 <span class="am-badge tpl-badge-success am-round"></span></span>
            </a>
            <ul class="am-dropdown-content tpl-dropdown-content">
                <li class="tpl-dropdown-content-external">
                    <h3>你有 <span class="tpl-color-success">5</span> 条提醒</h3><a href="###">全部</a></li>
                <li class="tpl-dropdown-list-bdbc"><a href="#" class="tpl-dropdown-list-fl"><span class="am-icon-btn am-icon-plus tpl-dropdown-ico-btn-size tpl-badge-success"></span> 【预览模块】移动端 查看时 手机、电脑框隐藏。</a>
                    <span class="tpl-dropdown-list-fr">3小时前</span>
                </li>
                <li class="tpl-dropdown-list-bdbc"><a href="#" class="tpl-dropdown-list-fl"><span class="am-icon-btn am-icon-check tpl-dropdown-ico-btn-size tpl-badge-danger"></span> 移动端，导航条下边距处理</a>
                    <span class="tpl-dropdown-list-fr">15分钟前</span>
                </li>
                <li class="tpl-dropdown-list-bdbc"><a href="#" class="tpl-dropdown-list-fl"><span class="am-icon-btn am-icon-bell-o tpl-dropdown-ico-btn-size tpl-badge-warning"></span> 追加统计代码</a>
                    <span class="tpl-dropdown-list-fr">2天前</span>
                </li>
            </ul>
        </li>
        <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
            <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                <span class="am-icon-comment-o"></span> 消息 @if($header['msg']['count'])<span class="am-badge tpl-badge-danger am-round">{{ $header['msg']['count'] }}</span>@endif</span>
            </a>
            <ul class="am-dropdown-content tpl-dropdown-content">
                <li class="tpl-dropdown-content-external">
                    <h3>你有 <span class="tpl-color-danger">{{ $header['msg']['count'] }}</span> 条新消息</h3><a href="{{ url('/admin/message_mange/msg') }}">全部</a></li>
                <li>
                    @foreach($header['msg']['msgData'] as $key )
                    <a href="{{ url('/admin/message_mange/msg') }}" class="tpl-dropdown-content-message">
                        <span class="tpl-dropdown-content-photo">
                          <img src="{{ $key['avatar'] }}" alt="">
                        </span>
                        <span class="tpl-dropdown-content-subject">
                            <span class="tpl-dropdown-content-from"> {{$key['nickname']}} </span>
                            <span class="tpl-dropdown-content-time">{{ $key['created_at'] }}</span>
                        </span>
                            <span class="tpl-dropdown-content-font"> {{$key['message']}} </span>
                    </a>
                    @endforeach
                </li>

            </ul>
        </li>
        <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
            <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                <span class="am-icon-calendar"></span> 进度 <span class="am-badge tpl-badge-primary am-round">4</span></span>
            </a>
            <ul class="am-dropdown-content tpl-dropdown-content">
                <li class="tpl-dropdown-content-external">
                    <h3>你有 <span class="tpl-color-primary">4</span> 个任务进度</h3><a href="###">全部</a></li>
                <li>
                    <a href="javascript:;" class="tpl-dropdown-content-progress">
                        <span class="task">
                <span class="desc">Amaze UI 用户中心 v1.2 </span>
                        <span class="percent">45%</span>
                        </span>
                        <span class="progress">
                <div class="am-progress tpl-progress am-progress-striped"><div class="am-progress-bar am-progress-bar-success" style="width:45%"></div></div>
            </span>
                    </a>
                </li>
                <li>
                    <a href="javascript:;" class="tpl-dropdown-content-progress">
                        <span class="task">
                <span class="desc">新闻内容页 </span>
                        <span class="percent">30%</span>
                        </span>
                        <span class="progress">
               <div class="am-progress tpl-progress am-progress-striped"><div class="am-progress-bar am-progress-bar-secondary" style="width:30%"></div></div>
            </span>
                    </a>
                </li>
                <li>
                    <a href="javascript:;" class="tpl-dropdown-content-progress">
                        <span class="task">
                <span class="desc">管理中心 </span>
                        <span class="percent">60%</span>
                        </span>
                        <span class="progress">
                <div class="am-progress tpl-progress am-progress-striped"><div class="am-progress-bar am-progress-bar-warning" style="width:60%"></div></div>
            </span>
                    </a>
                </li>

            </ul>
        </li>
        <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen" class="tpl-header-list-link"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>

        <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
            <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                <span class="tpl-header-list-user-nick">{{Auth::user()->name}}</span><span class="tpl-header-list-user-ico"> <img src="{{ Auth::user()->img }}"></span>
            </a>
            <ul class="am-dropdown-content">
                <li><a href="{{ url('admin/user_manage/user/').'/'.Auth::id().'/edit' }}"><span class="am-icon-bell-o"></span> 资料</a></li>
                <li><a href="#"><span class="am-icon-cog"></span> 设置</a></li>
                <li><a href="{{ route('logout') }}" class="tpl-header-list-link"  onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();"><form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                                            {{ csrf_field() }}
                                        </form><span class="am-icon-power-off"></span> 退出</a></li>
            </ul>
        </li>
        <li><a href="{{ route('logout') }}" class="tpl-header-list-link"  onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();"><span class="am-icon-sign-out tpl-header-list-ico-out-size"></span></a><form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                                            {{ csrf_field() }}
                                        </form></li>
    </ul>
</div>
   
